package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.OrderHandleResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;

import java.util.HashMap;


/*
*  订单处理接口
* */


public class OrderHandleApi extends AbsRequest<OrderHandleApi.OrderHandleParams, OrderHandleResult> {

    public OrderHandleApi(OrderHandleParams orderHandleParams, Listener<OrderHandleResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getOrderHandleUrl(), orderHandleParams, listener, errorListener, OrderHandleResult.class);
    }

    public static class OrderHandleParams extends BaseParams {
        public OrderHandleParams(HashMap<String, String> hm) {
            super(hm);
        }

        //内勤 驳回
        public OrderHandleParams(String ORDER_ID, String ORDER_STATUS, String BH_REMARK, String CAPTAIN_ID) {
            //必传
            put("ORDER_ID", ORDER_ID);
            //必传
            put("ORDER_STATUS", ORDER_STATUS);

            put("BH_REMARK", BH_REMARK);

        }

    }
}